﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ASSReader
{
    public class SubEvent
    {
        public string Format { get; set; }
        public bool Marked { get; set; }
        public TimeSpan Start { get; set; }
        public TimeSpan End { get; set; }
        public string Style { get; set; }
        public string Name { get; set; }
        public int MarginL { get; set; }
        public int MarginR { get; set; }
        public int MarginV { get; set; }
        public string Effect { get; set; }
        public string Text { get; set; }
        public int ReadOrder { get; set; }
    }
  
    public class EventCollection : List<SubEvent>
    {
        public EventCollection(IEnumerable<string> Header)
        {
            this.Headers = new List<string>(Header);
            var h2 = new List<string>(Header);
            h2.Remove("Start");
            h2.Remove("End");
            h2.Insert(0, "ReadOrder");
            InnerHeaders = h2;
        }

        public IList<string> Headers { get; private set; }
        public IList<string> InnerHeaders { get; private set; }
    }
}
